package com.grape.service.system.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.grape.dao.system.PermissionRepository;
import com.grape.domain.system.Permission;
import com.grape.service.system.PermissionService;

@Service
public class PermissionServiceImpl implements PermissionService {

	@Autowired
	private PermissionRepository pr;
	
	@Override
	public List<Permission> findAll() {
		return pr.findAll();
	}

	@Override
	public void save(Permission model) {
		pr.save(model);
	}

}
